<?php
require_once 'IException.class.php';

abstract class AbstractException implements IException {
    
    /* Atributo de log para todas as classes filhas. */
    protected $log;
    
    private $idMessage;
    private $errorMessage;
    
    /**
     * Construtor
     * 
     * @param string $errorMessage
     * @param string $idMessage
     */
    public function __construct($errorMessage, $idMessage = '') {
        $this->log = new Log();
        $this->idMessage = $idMessage;
        $this->errorMessage = $errorMessage;
    }
    
    public function getIdMessage() {
        return $this->errorMessage;
    }
    
    public function getErrorMessage() {
        return $this->errorMessage;
    }
}
?>